home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- abstract class Spring$CompoundSpring extends Spring.StaticSpring {
- // $FF: renamed from: s1 javax.swing.Spring
- protected Spring field_0;
- // $FF: renamed from: s2 javax.swing.Spring
- protected Spring field_1;
-
- public Spring$CompoundSpring(Spring var1, Spring var2) {
- super(Integer.MIN_VALUE);
- this.field_0 = var1;
- this.field_1 = var2;
- }
-
- public String toString() {
- return "CompoundSpring of " + this.field_0 + " and " + this.field_1;
- }
-
- protected void clear() {
- super.clear();
- this.min = this.pref = this.max = Integer.MIN_VALUE;
- this.field_0.setValue(Integer.MIN_VALUE);
- this.field_1.setValue(Integer.MIN_VALUE);
- }
-
- // $FF: renamed from: op (int, int) int
- protected abstract int method_0(int var1, int var2);
-
- public int getMinimumValue() {
- if (this.min == Integer.MIN_VALUE) {
- this.min = this.method_0(this.field_0.getMinimumValue(), this.field_1.getMinimumValue());
- }
-
- return this.min;
- }
-
- public int getPreferredValue() {
- if (this.pref == Integer.MIN_VALUE) {
- this.pref = this.method_0(this.field_0.getPreferredValue(), this.field_1.getPreferredValue());
- }
-
- return this.pref;
- }
-
- public int getMaximumValue() {
- if (this.max == Integer.MIN_VALUE) {
- this.max = this.method_0(this.field_0.getMaximumValue(), this.field_1.getMaximumValue());
- }
-
- return this.max;
- }
-
- public int getValue() {
- if (this.size == Integer.MIN_VALUE) {
- this.size = this.method_0(this.field_0.getValue(), this.field_1.getValue());
- }
-
- return this.size;
- }
-
- boolean isCyclic(SpringLayout var1) {
- return var1.isCyclic(this.field_0) || var1.isCyclic(this.field_1);
- }
- }
-